-- GENERATED SPELL FOR [Harold Lane] --


function spell0_25804(pUnit, Event) --@Bear Trap,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(53432,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_25804', 1, 1)
end

function spell1_25804(pUnit, Event) --@Throw Bear Pelt,n/a--
pUnit:FullCastSpellOnTarget(53425,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25804', 2000, 1)
end

function Sorts_25804(pUnit, Event)
local choix_sorts_25804 = math.random(0, 1)
if choix_sorts_25804 == 0 then
pUnit:RegisterEvent('spell0_25804', 1, 1)
end
if choix_sorts_25804 == 1 then
pUnit:RegisterEvent('spell1_25804', 1, 1)
end
end

function mob25804_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25804', math.random(1500, 3000), 1)
end

function mob25804_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25804_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25804_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25804, 1, 'mob25804_Action')
RegisterUnitEvent(25804, 2, 'mob25804_Leave')
RegisterUnitEvent(25804, 3, 'mob25804_Kill')
RegisterUnitEvent(25804, 4, 'mob25804_Die')
